﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ManagerTitleInfo.aspx.cs"
    Inherits="sysadmin_BBSManager_ManagerTitleInfo" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>管理帖子</title>
    <link href="../../css/1/css/css.css" type="text/css" rel="stylesheet" />
</head>
<body>
    <form id="form1" runat="server">
          <table border="0" cellpadding="0" cellspacing="0" class="tree-titbg_right" width="100%">
            <tr>
                <td class="tree-titbg_left">
                    <asp:Label ID="lab_TitleInfo" runat="server" Text="管理贴子"></asp:Label></td>
            </tr>
        </table>
        <table border="0" cellpadding="0" cellspacing="0" class="tableList2" width="100%">
            <tr>
            <th><%= GetLanageValueByKey("lab_AddBBSModule_ModuleName", PowerCreator.LMS.Language.LanagetItemType.Page) %></th>
                <td>
                    <asp:DropDownList ID="ddl_Domain" runat="server" AppendDataBoundItems="True">
                        <asp:ListItem Value="-1">请选择</asp:ListItem>
                    </asp:DropDownList></td>
            </tr>
            <tr>
                <th>
                    <%= GetLanageValueByKey("lab_ManagerTitleInfo_TitleName", PowerCreator.LMS.Language.LanagetItemType.Page) %></th>
                <td>
                    <asp:TextBox ID="txt_TitleName" runat="server"></asp:TextBox>
                    <asp:Button ID="btn_seach" runat="server" class="mybuttons" OnClick="btn_seach_Click"
                        Text="查 询" CssClass="inputBotton2" />
                </td>
            </tr>
        </table>
        <br />
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" BorderWidth="0px"
            CssClass="mainList" GridLines="None" OnRowCommand="GridView1_RowCommand"
            OnRowDataBound="GridView1_RowDataBound" AllowSorting="True" OnSorting="GridView1_Sorting">
            <Columns>
                <asp:BoundField DataField="ThemeID" HeaderText="编号" />
                <asp:BoundField DataField="ThemeTitle" HeaderText="标题" />
                <asp:BoundField DataField="ThemeVisitNum" HeaderText="点击量" SortExpression="ThemeVisitNum" />
                <asp:BoundField DataField="ThemeUserName" HeaderText="作者" SortExpression="ThemeUserName" />
                <asp:BoundField DataField="ThemeCreatetime" HeaderText="创建时间" SortExpression="ThemeCreatetime" />
                <asp:BoundField DataField="ThemeIsVisible" HeaderText="显示状态" Visible="False" />
                                      <asp:BoundField DataField="ThemeLastRevertUserName" HeaderText="最后回帖人" SortExpression="ThemeLastRevertUserName" />
                            <asp:BoundField DataField="ThemeLastRevertTime" HeaderText="最后回帖时间" SortExpression="ThemeLastRevertTime" />
                            <asp:BoundField DataField="ThemeReversionNum" HeaderText="回帖数"  SortExpression="ThemeReversionNum" />
                <asp:TemplateField>
                    <ItemTemplate>
                        <asp:LinkButton ID="btn_Edit" runat="server" CommandArgument='<%#Eval("ThemeID") %>'
                            CommandName="btn_Edit">编辑</asp:LinkButton>
                        <asp:LinkButton ID="btn_del" runat="server" CommandArgument='<%#Eval("ThemeID") %>'
                            CommandName="btn_del">删除</asp:LinkButton>
                        <asp:LinkButton ID="btn_shenhe" runat="server" CommandArgument='<%#Eval("ThemeID") %>'
                            CommandName="btn_shenhe" Visible="False">显示</asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
      <table width="100%" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td>
                    <webdiyer:AspNetPager ID="AspNetPager1" runat="server" HorizontalAlign="Center" OnPageChanged="AspNetPager1_PageChanged"
                        ShowCustomInfoSection="Left" Width="100%" meta:resourceKey="AspNetPager1" Style="font-size: 14px"
                        InputBoxStyle="width:19px" CustomInfoHTML="当前页  <font color='red'><b>%CurrentPageIndex%</b></font> 总页数  %PageCount%  当前条数 %StartRecordIndex%-%EndRecordIndex%"
                        FirstPageText="首页" LastPageText="末页" NextPageText="下一页" PrevPageText="上一页">
                    </webdiyer:AspNetPager>
                </td>
            </tr>
        </table>
    </form>
</body>
</html>
